package com.hou.EX.ServicesException;


//业务层异常的基类：throws new ServiceException(" 下面几种")
//为了便于统一管理自定义异常，应先创建ServiceException自定义异常的基类异常，继承自RuntimeException类
//然后再根据业务层不同的功能来详细定义具体的异常类，统一的去继承ServiceException异常类
public class ServiceException extends RuntimeException{

//  调用不同的构造方法抛出String message异常信息  Throwable cause异常对象

    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
